<template>
  <el-menu  class="el-menu-demo" align="left"
    background-color="#545c64"
            text-color="#fff"
            active-text-color="#409eff"
            router
            :unique-opened="true"
  >

    <el-submenu index="1">
      <template slot="title">
        <span>学生管理</span>
      </template>
      <el-menu-item index="/student/ClassList">班级列表</el-menu-item>
      <el-menu-item index="/student/AddClass">添加班级</el-menu-item>
      <el-menu-item index="/student/StudentList">学生列表</el-menu-item>
      <el-menu-item index="/student/AddStudent">添加学生</el-menu-item>
    </el-submenu>
<el-submenu index="1">
      <template slot="title">
        <span>实验室管理</span>
      </template>
      <el-menu-item index="/laboratory/LaboratoryList">实验室列表</el-menu-item>
      <el-menu-item index="/laboratory/AddLaboratory">添加实验室</el-menu-item>
    </el-submenu>

  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  data(){
    return {
      role:sessionStorage.getItem("role")
    }
  }
}
</script>

<style scoped>

</style>
